package com.xxx.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author xxx
 * @since 2024-11-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = false)
@TableName("`order`")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "orderId", type = IdType.AUTO)
    @Schema(description = "订单Id")
    private Integer orderId;

    @Schema(description = "用户Id")
    private Integer userId;

    /**
     * 0-未处理 1-已处理
     */
    @Schema(description = "订单状态")
    private Integer orderStatus;
    @Schema(description = "总金额")
    private Double totalAmount;
    @Schema(description = "订单创建时间")
    private LocalDateTime createTime;

//    @TableLogic
    @Schema(description = "逻辑删除")
    private Integer isDeleted;

}
